

import request from "@/utils/request.js"

// 会议通知----查询
// export const noticeInfoPages = (data) => {
// 	return request({
// 		url: `/app/workflow/notice_info/pages/${data.businessType}`,
// 		method: "POST",
// 		data
// 	})
// }

// 会议通知----审批流程 查询列表
export const auditPages = (data) => {
	return request({
		url: `/app/workflow/audit/pages/MEETING`,
		method: "POST",
		data
	})
}


// 会议通知----审批流程 保存与提交
export const auditSave = (data) => {
	return request({
		url: `/app/workflow/audit/save/${data.operateType}/MEETING`,
		method: "POST",
		data
	})
}

// 会议通知----获取businessId
export const auditInfo = (data={}) => {
	return request({
		url: `/app/workflow/audit/info/MEETING`,
		data
	})
}

// 办理记录
export const auditItemList = (businessId) => {
	return request({
		url: `/app/workflow/audit_item/list/MEETING/${businessId}`,
		method: "POST",
	})
}

// 办理记录
export const attachList = (businessId) => {
	return request({
		url: `/app/workflow/business_attach/list/MEETING/${businessId}`,
		method: "POST",
	})
}


// 撤回
export const auditReback = (businessId) => {
	return request({
		url: `/app/workflow/audit/reback?id=${businessId}`,
		method: "POST",
	})
}

// 会议通知----查询
export const noticeInfoPages = (data) => {
	return request({
		url: `/app/workflow/notice_info/pages/MEETING`,
		method: "POST",
		data
	})
}

// 会议通知 我审批的----查询列表
export const taskInfoPages = (data) => {
	return request({
		url: `/app/workflow/task_info/pages/MEETING`,
		method: "POST",
		data
	})
}

// 会议通知 我审批的----查询
export const taskInfoInfo = (data={}) => {
	return request({
		url: `/app/workflow/task_info/info/MEETING`,
		data
	})
}

// 会议通知 提交审批意见
export const taskInfoSave = (data) => {
	return request({
		url: `/app/workflow/task_info/save/${data.operateType}/MEETING`,
		method: 'post',
		data
	})
}

// 会议通知 我参与的----查询
export const noticeInfoInfo = (data={}) => {
	return request({
		url: `/app/workflow/notice_info/info/MEETING`,
		data
	})
}

// 会议通知 提交阅读状态
export const updateReadStatus = (data) => {
	return request({
		url: `/app/workflow/notice_info/update/read_status`,
		method: 'post',
		data
	})
}